import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: { 
    goodsList:[]
  },
  getters: {
  },
  mutations: {
    setGoodsList(state,value) {
      state.goodsList.push(value)
      console.log(state.goodsList);
    }
  },
  actions: {
  },
  modules: {
  }
})
